package com.baseframe.sys.controller;

import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baseframe.common.annotation.VisitLog;
import com.baseframe.common.utils.PageUtils;
import com.baseframe.common.utils.R;
import com.baseframe.sys.service.IFrameOperationLogService;

/**
 * 
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/frame/operationlog")
public class FrameOperationLogController extends AbstractController {

    @Autowired
    private IFrameOperationLogService frameOperationLogService;
    
//    /**
//     * 所有菜单列表
//     */
//    @RequestMapping("/list")
//    @RequiresPermissions("frame:operationlog:list")
//    public List<FrameOperationLog> list() {
//        List<FrameOperationLog> operationList = frameOperationLogService.selectList();
//
//        return operationList;
//    }
    
    
    /**
   	 * 所有列表
   	 */
    @VisitLog("操作日志")
   	@RequestMapping("/list")
   	public R list(@RequestParam Map<String, Object> params){
   		PageUtils page = frameOperationLogService.queryPage(params);

   		return R.ok().put("page", page);
   	}
    

    
}
